import 'package:flutter/material.dart';
/*
  Color color, //颜色
  DecorationImage image,//图片
  BoxBorder border, //边框
  BorderRadiusGeometry borderRadius, //圆角
  List<BoxShadow> boxShadow, //阴影,可以指定多个
  Gradient gradient, //渐变
  BlendMode backgroundBlendMode, //背景混合模式
  BoxShape shape = BoxShape.rectangle, //形状
 */
class DecoratedApp extends StatelessWidget{
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('装饰容器'),
      ),
      body: DecoratedBox(
        decoration: BoxDecoration(
          gradient: LinearGradient(colors: [Colors.red,Colors.orange],),
          borderRadius: BorderRadius.circular(10.0),
          boxShadow: [
BoxShadow(
  color: Colors.black,
  offset: Offset(2.0,2.0),
  blurRadius: 4.0,
)
          ],
        ),
        child: Text('hello world'),
      ),
    );
  }

}